<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>后台管理系统</title>
<link rel="shortcut icon" type="image/ico"
	href="${ctx}/admin/images/favicon.ico">
<script type="text/javascript" src="${ctx}/admin/js/jquery.js"></script>
<script type="text/javascript" src="${ctx}/admin/js/base.js"></script>
<link rel="stylesheet" href="${ctx}/admin/css/main.css">

<script type="text/javascript">
	function isLogin() {
		$.getJSON("${ctx}/user/info", {
			token : localStorage.getItem("token")
		}, function(json) {
			if (json.success) {
				localStorage.setItem("token", $("#token").val());
			} else {
				logout();
			}
		});
	}
	function logout() {
		localStorage.removeItem("token");
		window.location.href = "${ctx}/admin";
	}
	$(document).ready(function() {
		localStorage.setItem("token", $("#token").val())
		isLogin();
	});
</script>
<style type="text/css">
* {
	margin: 0px;
	padding: 0px;
}

html, body {
	height: 100%;
	overflow: hidden;
}

html>body {
	width: auto;
	height: auto;
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	font-size: 12px;
}

#left {
	width: 120px;
	height: 100%;
	position: absolute;
	left: 0px;
	float: left;
	display: inline;
}
</style>
<script type="text/javascript">
	
</script>
</head>

<body>
	<input type="hidden" id="token" value="${user.guid!}">
	<div id="header">
		<div class="header">
			<div class="logo"></div>
			<div class="h_r">
				<div class="set">
					<div class="set_c">
						<span class="hy">欢迎您！ <#if user??>${user.nick_name!}</#if></span>
						<a href="javascript:logout()" class="set_a">退出</a>
					</div>
				</div>
				<div class="date">
					<span id="Y"></span> <span id="MH"></span> <span id="TD"></span> <span
						id="D"></span> <span id="H"></span> <span>:</span> <span id="M"></span>
					<span>:</span> <span id="S"></span>
				</div>
			</div>
		</div>
	</div>
	<div class="main">
		<div class="content">
			<div id="left" style="overflow: hidden; height: 516px;">
				<div class="menu" style="overflow-y: scroll; overflow: hidden">
					<h1 class="one yhgl current">
						<a href="${ctx}/admin/user/list" target="rightFrame"><em
							class="yhgl_ico"></em><span>用户管理</span></a>
					</h1>
					<h1 class="one yhgl">
						<a href="${ctx}/admin/house/list" target="rightFrame"><em
							class="yhgl_ico"></em><span>房源管理</span></a>
					</h1>
				</div>
			</div>
			<div class="right">
				<iframe width="100%" scrolling="auto" height="100%"
					frameborder="false" allowtransparency="true"
					style="border: medium none;" src="${ctx}/admin/user/list"
					name="rightFrame" id="rightFrame"> </iframe>
			</div>
		</div>
		<div class="bottom" style="position: fixed; leftt: 0; bottom: 0">
			<p>版权所有：I C A T 工作室 鄂ICP备17009566号-2</p>
		</div>
	</div>
</body>
</html>
